package waysing.cream.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import waysing.cream.entity.Director;

/**
 * @author 作者 E-mail:weixinXie 274604559@qq.com
 * @version 创建时间：2018\3\13 0013 18:01
 * @describe 作者很懒，什么都没留下
 */
public interface DirectorDao extends JpaRepository<Director, Integer> {
    @Query("from Director director where director.doubanId=:doubanId")
    Director findDirector(@Param("doubanId") String doubanId);
}
